<template>
	<view class="container" v-show="isShow">
		<view class="insert-btn" hover-class="click-btn" @click="handleBtnClick">
			<view class="insert-btn-inner">
				<uni-icons type="plusempty" size="22" color="#000000"></uni-icons>
				<text class="insert-btn-text">添加数据</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"insert-btn",
		props: {
			isShow: {
				type: Boolean,
				default: true
			},
		},
		data() {
			return {
				
			};
		},
		methods: {
			handleBtnClick () {
				this.$emit('insert',false)
			}
		}
	}
</script>

<style lang="scss">
	.insert-btn {
		height: 147rpx;
		background: #DADADA;
		display: flex;
		align-items: center;
		justify-content: center;
		.insert-btn-inner {
			display: flex;
			align-items: center;
			.insert-btn-text {
				font-size: 30rpx;
				color: #000000;
			}
		}
	}
	.click-btn {
		background: #f3ebeb;
	}
</style>